//
//  B_InputTextVC.m
//  DreamOf
//
//  Created by 薛小刚 on 2018/9/3.
//  Copyright © 2018年 薛小刚. All rights reserved.
//

#import "B_InputTextVC.h"

@interface B_InputTextVC ()

@end

@implementation B_InputTextVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setTitle:@"添加描述"];
    WeakSelf(weSelf, self);
    self.B_textView.placeholder = @"请输入描述";
    self.B_textView.text = self.B_text;
    [self setRightTextBarButtonItemWithFrame:CGRectZero title:@"完成" titleColor:[UIColor color_pink] backImage:@"" selectBackImage:@"" action:^(GUIButton *button) {
        [weSelf.view endEditing:YES];
        if (weSelf.B_doneAction) {
            weSelf.B_doneAction(weSelf.B_textView.text);
        }
        [weSelf.navigationController popViewControllerAnimated:YES];
    }];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
